<?php
global $_W,$_GPC;
$title = '报名成功后关注引导';
WXLimit();
$id = $_GPC['id'];
$mem = $this->getMem();
$order = get('select * from '.tb('order')." where id='{$id}'");
$book = get('select id,title from '.tb('book')." where id='{$order['bid']}'");
$mem_book = get('select id,guide_weid from ' .tb('mem_book'). " where oid = '{$order['id']}'");
$mem_book['guide_weid'] = $mem_book['guide_weid']?$mem_book['guide_weid']:$_W['uniacid'];
$qr = $this->getQR(array('wid'=>$mem_book['guide_weid']));
$account = pdo_fetch('select uniacid,`name` from ' .tablename('account_wechats'). " where uniacid='{$mem_book['guide_weid']}'");
$share = $this->getShare($mem, $cfg);
include $this->template('sub');